package sm.upgrade.api;

import java.util.List;

import sm.dbdict.def.DBDict;
import sm.dbdict.def.Key;
import sm.upgrade.exception.UpgradeException;
import sm.util.SMMap;

public interface KeyValidator {

	public boolean resolveConflict(String fileName, SMMap dataMap,
			String keyStr, int keyType, String[] keyPaths,
			Object[] oldKeyValue, Object[] newKeyValue);

	public boolean validateKey(DBDict dbdict, Key newKey, List<SMMap> datas,
			boolean fix) throws UpgradeException;

}
